﻿using System;

namespace Sharp.Portal.Other
{
    /// <summary>
    /// 列特性
    /// </summary>
    [Flags]
    public enum QueryFeature
    {
        /// <summary>
        /// 无特性
        /// </summary>
        None = 0,
        /// <summary>
        /// 作为查询项
        /// </summary>
        Queryable = 1,
        /// <summary>
        /// 默认查询项，必须是可以查询的列才有效
        /// 将会默认创建查询条件
        /// </summary>
        DefualtQuery = 2,
        /// <summary>
        /// 查询时，查询项作为下拉框出现，列举已有的数据值
        /// </summary>
        DropdownList = 4,
        /// <summary>
        /// 复选框组查询
        /// </summary>
        CheckBoxGroupQuery = 8,
        /// <summary>
        /// 组织结构组查询
        /// </summary>
        OrganizationGroupQuery = 16,
        /// <summary>
        /// 字符串查询条件，等于匹配，默认情况LIKE
        /// </summary>
        EqualMatchString = 32,
        /// <summary>
        /// 使用起止框查询
        /// </summary>
        FromToQuery = 64,
        /// <summary>
        /// 组织结构
        /// </summary>
        Organization = 128,
        /// <summary>
        /// 禁用搜索
        /// </summary>
        NoneQuery = 256
    };
}
